<?php

require_once(DIR_LIB."VsGui".DIR_SEP."vssmartywidget.php");

require_once(DIR_LIB."VsCore".DIR_SEP."vsauth.php");

class XCartAdminUserEdit extends VsSmartyWidget {

	function __construct(&$page, &$user) {
		// Ne go zabravqj ina4e nqma $smarty Object
		parent::__construct();

		$this->_wwwDir = 'templates/XCart/';

/*
		$page->addCssFile($this->_wwwDir."css/skin1_admin.css");
		$page->addCssFile($this->_wwwDir."css/switcher.css");
		$page->addJsFile($this->_wwwDir."js/common.js");
		$page->addJsFile($this->_wwwDir."js/switcher.js");
*/
		$this->_template = dirname(__FILE__).DIR_SEP."xcart_admin_useredit.html";

		$this->assign('userEdit', $user);
	}
	//============================================================================

	function show() {
		$this->assign('wwwDir', $this->_wwwDir);
		//$this->assign('curAuthId', VsAuth::Instance()->id());
		$this->assign('auth', VsAuth::Instance());

		return $this->fetch($this->_template);
	}
	//============================================================================


};

?>
